home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 21
/
Cream of the Crop 21 (Terry Blount) (October 1996).iso
/
bbs
/
kspslp36.zip
/
DIALBBS.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-06-19
|
1KB
|
70 lines
# Script file for Trumpet Winsock, Version 2.0
# Dials PCBoard BBS and starts SLIP door.
# -------------------------------------------
#
# initialize modem and dial the BBS number
#
output atz1\r
input 10 OK
output atdt14085545197\r
#
# wait for "CONNECT"
#
input 60 CONNECT
#
# wait till it's safe to send because some modem's hang up
# if you transmit during the connection phase
#
wait 60 dcd
#
# wait for: "Do you want graphics (Enter)=default?"
#
input 45 default
output nq\r
#
# wait for: "What is your first name?"
#
input 30 name
username First Name:
output \u\r
#
# wait for: "What is your last name?"
#
input 5 name
username Last Name:
output \u\r
#
# wait for: "Password (Dots will echo)?"
#
input 10 echo
password Password:
output \p\r
#
# wait for: "Scan Message Base Since 'Last Read' (Enter)=yes?"
# then respond with "N(o)".
#
if [input 5 yes]
output n\r
end
#
# wait for: "Main Board Command?" then issue command to run KSP-SLIP
#
input 30 Command
output slip\r
#
# wait for: the word "address" from STARTUP.MSG display file,
# then grab the IP address that follows.
#
input 30 address
address 30
#
# wait for: "Press any key to begin:" then respond with a carriage return.
#
input 30 Press
output \r
#
# we are now connected, logged in and in SLIP mode.
#
display Your IP address is: \i\n
online